<include file="./App/Tpl/Home/Default/Public/header.html" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript">
$(document).ready(function() {
	
	$("#viewBg").bind("click",function(){
		addBgDialog();
		return false;
	});
	
	$("#exportButton").bind('click',function(){
		$.ajax({
			   type: "POST",
			   url: "?g=Admin&m=Order&a=dataExport",
			   dataType:'text',
			   success: function(msg){
			   		var url="?g=Admin&m=Order&a=export&path="+encodeURIComponent(msg);
			   		pDialog("下载",url,300,260);
			   }
			}); 
		
	});
	$("#sCr").bind("click",function(){
		var url="?g=Admin&m=User&a=slist&t=c&f1=CU_ID&f2=CU_NAME";
		openDialog(url);
	});
	$("#sAr").bind("click",function(){
		var url="?g=Admin&m=Index&a=sarea&f1=AR_ID&f2=AR_ADDRESS";
		openDialog(url);
	});
	//查询
	$("#submit").bind("click",function(){
		var _url=window.location.href;
		var _list=_url.split('?');
		var _http=_list[0];
		var _pList=_list[1].split('&');
		var _usePara=[];
		for(var i=0;i<_pList.length;i++ ){
			var _p=_pList[i];
			var _t=_p.split('=')[0];
			if(_t=='g' || _t=='m' || _t=='a'  /*|| _t=="p"*/){
				_usePara.push(_p);
			}
		}
		var _newHttp=_http+"?"+_usePara.join('&');
		_newHttp+="&O_NO="+encodeURI($("#O_NO").val())+"&O_STATE="+encodeURI($("#O_STATE").val())+"&CREATED_AT="+encodeURI($("#CREATED_AT").val());
		window.location.href=_newHttp;
		
	});
} );
function addBgDialog(o_id){
	var url="?g=Admin&m=Order&a=viewBgXg&O_ID="+o_id;
	pDialog("查看详情",url,600,480);
}
function openDialog(url){
	pDialog('',url,500,380);
}
function dialogClose(){
	pclose();
}
function quit(){
	$.ajax({
		   type: "POST",
		   url: "?g=Home&m=Index&a=logout",
		   data: '',
		   success: function(msg){
			   var type='1';
				var info="退出成功！";
				var url="?g=Home&m=Skin&a=login&ly=7";
				if(msg=="srv"){
					url="?g=Home&m=Skin&a=login&ly=8";
				}
				
			   window.location.href="?g=Home&m=Skin&a=message&type="+type+"&info="+encodeURI(info)+"&url="+encodeURIComponent(url);
				
		   }
	});
}
	
</script>
<style>
.styleTH{background:url(__PUBLIC__/images/home/th-td.png) repeat-x;font-size:12px;font-weight:bold;text-align:center;}
td{word-wrap:break-word;background-color:#F9F9F9}

</style>
<div class="main">
   	<div class="book">
       	<h1>佳空间蓝色安装队服务预约单</h1>
           <form action="" method="get" class="book_form">
               <fieldset>
                   <legend>服务预约单</legend>
                   <div class="book_one check">您可以检索自己的订单。	
                   <span style="font-size:12px;padding-left:50px;">
			       	<a href="#" onclick="quit();return false;" ><font color="#8AB729">[退出]</font></a>
			        <a href="?g=Home&m=Skin&a=changePwd"><font color="#8AB729">[修改密码]</font></a>
			       	</span>
			       	</div>
                  		<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
							  <tr>
							  	<td align="center">
								  		<table  border="0" cellpadding="0" cellspacing="0" bgcolor="#a8c7ce">
								  			<tr>
								  				<td bgcolor="#FFFFFF"><span class="STYLE10"　>订单编号：</span></td>
								  				<td bgcolor="#FFFFFF" align="left">
								  					<input  type="text" name="O_NO" id="O_NO" value="{$outSearch.O_NO}" style="width:100px;"></input>
								  				</td>
								  				
								  				<td bgcolor="#FFFFFF"><span class="STYLE10">订单状态：</span></td>
								  				<td bgcolor="#FFFFFF" align="left">
								  					<select size=1 name="O_STATE" id="O_STATE" style="width:100px;">
								  						<volist name="state" id="vo" >
								  							<assign name="stateid" value="$vo.id" />
								  							<option value="{$vo.id}" <if condition="$outSearch.O_STATE eq $stateid">selected</if>>{$vo.name}</option>
								  						</volist>
								  					</select>
								  				</td>
								  				<td bgcolor="#FFFFFF"><span class="STYLE10">下单时间：</span></td>
								  				<td bgcolor="#FFFFFF" align="left">
								  					<select size=1 name="CREATED_AT" id="CREATED_AT"  style="width:120px;">
								  						<volist name="createTime" id="vo" >
								  							<assign name="timeid" value="$vo.id" />
								  							<option value="{$vo.id}" <if condition="$outSearch.CREATED_AT eq $timeid">selected</if>>{$vo.name}</option>
								  						</volist>
								  					</select>
								  					
								  				</td>
								  				<td  bgcolor="#FFFFFF" align="center">
								  					<div style="margin-left:10px;">
								  						
								  						<img src="__PUBLIC__/images/home/chaxun.png" id="submit" name="submit" align="absmiddle" alt="" />
								  					</div>
								  					
								  				</td>
								  			</tr>
								  			
								  		</table>
							  	</td>
							  </tr>
							  <tr>
							    <td>
							    
							    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" >
							      <tr>
							        <td width="15%" height="20"  class="styleTH"><span class="STYLE10">编号</span></td>
							        <td width="10%"   height="20"  class="styleTH"><span class="STYLE10">类型</span></td>
							        <td width="10%"   height="20"  class="styleTH"><span class="STYLE10">状态</span></td>
							        <td width="15%"  height="20"  class="styleTH"><span class="STYLE10">地区</span></td>
							        <td width="20%"   height="20"  class="styleTH"><span class="STYLE10">产品</span></td>
							        <td width="15%"   height="20"  class="styleTH"><span class="STYLE10">服务队</span></td>
							        <td width="15%"   height="20" class="styleTH"><span class="STYLE10">下单时间</span></td>
							        <!-- <th  height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></th>
							         -->
							      </tr>
							      <volist name="orderList" id="data">
									<tr>
								       
								        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19"><a href="?g=Home&m=Skin&a=detail&O_ID={$data.O_ID}" >{$data.O_NO}</a></span></div></td>
								        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">{$data.O_TYPE}</span></div></td>
								        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$data.O_STATE}</div></td>
								        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$data.O_AREA}</div></td>
								        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$data.O_PRODUCT}</div></td>
								        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$data.ST_NAME}</div></td>
								        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$data.CREATED_AT}</div></td>
								        <!--<td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE21"><a href="#" onclick="addBgDialog('{$data.O_ID}');return false;">详情</a></div></td>
								        -->
							      	</tr>
							      </volist>
							    </table>
							    
							    </td>
							  </tr>
							  <tr>
							  	<td height="20" bgcolor="#FFFFFF" class="pageToolbar" align="left">{$page}</td>
							  </tr>
				    	</table>
                  
                   <div class="auto_time">查询时间：{$cTime}</div>
               </fieldset>
           </form>
       </div>
       <div class="ins">
       	<p>*为了为您提供最专业快捷的服务，请您尽可能将表格所需信息填写详尽。</p>
       	<p>*如果您所在地区不在我们的服务范畴之内，我们将无法为你提供上门服务，请您理解。</p>
       	<p>*预约单提交成功后，您的手机和邮箱都将收到我们的短信提醒，告知将为你服务的安装队的具体联络方式，您也可以据此主动与服务队取得联络，确认服务内容和上门时间。</p>
       	<p>*请牢记您在提交此预约单时填写的密码，可以使用注册邮箱（或手机号码）和这个密码作为用户登录，查询服务单的进度。</p>
       </div>
</div>
<include file="./App/Tpl/Home/Default/shop.html" />
<include file="./App/Tpl/Home/Default/partners.html" />
<include file="./App/Tpl/Home/Default/Public/footer.html" />	